package com.qww.exec12;

public class Root {

    Component1 component1 = new Component1();
    Component2 component2 = new Component2();
    Component3 component3 = new Component3();

    Root() {
        System.out.println("Root constructor");
    }

    public void dispose() {
        System.out.println("Root dispose");
        component3.dispose();
        component2.dispose();
        component1.dispose();
    }
}
